import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Moment from 'moment'
Vue.use(ElementUI) 

import request from './utils/axios/request.js'
import VueCookies from 'vue-cookies'
import axios from 'axios'
Vue.prototype.axios = request //将axios绑定到vue的原型上
Vue.use(VueCookies)
// 引入echarts
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts


// 定义全局时间戳过滤器
Vue.filter('formatDate', function(value) {
  return Moment(value).format('YYYY-MM-DD HH:mm:ss')
})
Vue.config.productionTip = false
new Vue({
	router,
	render: h => h(App),
}).$mount('#app')